<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
	<head>
		<title></title>
	</head>
	<body id="test_0003" onload="">
		<script language="JavaScript" type="text/javascript">
		<!-- Written by UberKuh @ UberKuh.com -->
		function Populate(form) {
			var myarray = new Array("text_field", "table", "area", "button", "cell", "check_box", "div", "form", "frame", "hidden", "label");
			var mycount = 0;
			for (var i = 0; i < myarray.length; i++) {
				for (var j = 0; j < myarray[i].length; j++) {
					if (form.f1.value == myarray[i].substring(0,j)) {
						for (var k = i+1; k < myarray.length; k++) {
							if (myarray[i].substring(0,j) == myarray[k].substring(0,j)) {
								mycount++;
							}
						}
						if (mycount < 1) {
							form.f1.value = myarray[i];
						}
					}
				}
			}
		}
		// -->
		</script>
		<p>
			Type in the name of a watir method
		</p>
		<blockquote>
			<form name="form1" id="form1">
				<input name="f1" type="text" size="25" value="" onkeyup="javascript:Populate(this.form);">
			</form>
		</blockquote>
	</body>
</html>
